old extensions code