map timeout to $timeout