adaptions for new seamonkey (not finished)