preparing for the apm publish