updated version of only-REST