add motion module, extract files