Fix imports & add check_path()