fixing some dependencies on AppConfig