remove strlen from check_path