time library fixes