adding in stub code and libraries from earliest CLI movement