original code from startkit