reworked build and release scripts