small bug, and more bits
thread support maybe