modified EF

changes to EF to use EF6