adding get file with params function