add file deploy func
sets up the mv_file func
sets up local vars
sets up checks before starting