main is half baked