reimplemented manager with cl.hpp