fixed magit as submodule, added dancar functions