update to work with reagent instead of dommy
moved some files
index