shared and route refactoring

Signed-off-by: vukis <vukis@bk.ru>