updating api to handle arrays better in active resource