add safety checks around release build targets