added report script
refactored scripts to handle hash, array or string