added some timing fns
pull master
smartdoc reject failing to redirect