modified for Monacoin