simplefy debug file, fix firefox bug