split move script into two