fixes #91
added condition if extension loaded and enabled