updated main program startup functions