finish main firefox logic
various fixes and updates to ff