some testing updates and a fix to structure insertion