add method for adding single file.