add some helpful error functions
add to time