added startup logging and fixed timing error