updated. added rest methods