added search and destination path variables to script