fixed some metric/query bugs. Made post package write to null logger by default