modified engine to create conf when not present and fixed errors