#47 throwing error when unexpected return format