use home_dir variable everywhere