got bitwriter working!!!!
re-added defer removal