remove process exit
remove console log statements