add motion and lib