added check on loaded extension