handle extensions