improving moody-api