fixed a couple of bugs - using better write strategy
bump