helper files for COBRA