rest helpers