added timer code
added a handletime prototype