added rest wrapper for backwards compatability