turn some methods into noops in non-debug mode