added -x parameter to actually move the file