need to use path not resource