fixed declarations; added timing in okl