enabled dump function, fixed output formatting