creating debug/logging object