added some logic to the build action