moved over from jbntools