fixed take-with-timeout