added main stuff