added debugging messages, fixed container checking
removed unneeded method from controller