add file path detection