small change to handle single row results
updates #3
updates #8 needs testing