add some common rest stuff