get rid of coffee pmsg and use js