use objective_primal instead of dirty hacks
debugging fixes