fix output format and a simple report script