make dgit more flexible