attempt to get a good timing
fixed timing.... but pb now with file saving ?