added configuration parsing, the configuration object now caries configuration on itself