fix time stack start/end operation hooks. add unique handler, ignore changes in $file handle