accepting patch from galou, thanks a lot