add try/catch around send, fix merging of array data