modify lego-init