added cleaning of extension