make time spans all throughout api instead of ints for timeouts