updated for the changes to mintpal api