renaming to an rei package
split client into separate module