update to work sugin HOME_DIR