changed console to debug, probably makes more sense in this context