recognise DECLARE_PEM_write_const, update ordinals