refactor env
import settings_local
fix run_manage command