fixes to costum.pp