default max_file_size added
bug with '//' in filepath fixed