adding sanity checking for incoming arguments
ignore file_exists() notices on non existing files