add the code for the first working extension version