minor optimizations for mobile + precompile