moved some stuff that was in openp