made bg app a singleton and added getters/setters