refactor and fix local app
refactor baby for mobiengine