add a log when binding to an undefined context, added some comments