add restful support and rename the packages