adapt to new cowboy  (cowlib separation)