use path to check