startup and main added