autodetect grant period on client