adds an adapter