remove debug statements, replace callbacks w/ process.exit()