refactoring to haxelib +SVG