add main function and remove eval since the __DIE__ handler takes care of this