add procedure from Mozila development wiki