fix some legacy issues
update build