initial support for motors in cpp