add EF and some base functionality