rs curl api stuff