converted to use of restler