now riverts working, all I need is just define adapter