simplified main initialization