Make public field for appConfig
Better error log to console