added Rest class for curl stuff