catching TB exceptions
working on catching referenceerrors