added error checking
pass accept from custom accept function
modified .gitignore
modified .gitignore