added prepublish compile and proper main