constructor now loads config, libraries and lang