fixed corruption with &id in the configuration.
made some fail proof things.