support for mulitiple frames for scripted motor