added file check in url