adjusted method order, move logger method in front