refactored rcpserial into rcpapi