It sounds like you need to do some troubleshooting. When do these accidents happen? If you can log on when it does, take your puppy out 5-10 minutes prior so that he can be put up for success since he's already outside when he needs to go. Walking him can further help stimulate him to go potty. Then once your puppy is empty, bring him back inside until the next potty time. Keep your puppy on a feeding schedule so that his pooping times are more predictable. Watch out for excitement and submissive peeing which is not really a potty training issue.