invoked -p flag for printing headers. removed a stray debug line