put in a delegate observer and fixed console functionality