use bstate as this in handlers