AppConfiguration and cleanup