add check for double extension