add eproject settings
Refactor a little