added Firefox support for saving/loading