moved build code to dedicated scripts