basic GOM functionallity, like logging and primitive encoding