bugfix redefinition
check extension