fixed testing. debugging rather than console for errors.