initial setup of motion-xray