allow to set up browser grace time
reformat code + optimize imports