fixed the precompile issue and added mixpanel