copying over from beachmint