added startup sequence and logging