working on pkm writer