refactor for release on haxelib