DRY, invoke set_directory instead