study insert now works
check errors raised properly