refs
convert common logging to portable
make common portable