get_attributes method that repects the old api standard and understands the new