check extension before use it