fix browserifyability
make safe for bops use