accept parameter and test if file exist