add right table and add manytomany dependencies