stable release

full rewrite to be more MBC style