added PTR support, refactored logging, configs in YAML