add logger, fix bug with requirejs, update config(only read)