again better error handling (firefox)