update for bluemoon code