simplifying rest api :)