add debug messages
depend on beans too