renamed c() api function to cockpit()