respect system environment HOANOHO_DIR & refactoring