fix precompile
related models and several api added