Revert "main script"

This reverts commit e7af60be38f7aed6434d1c3a26c8b95804792b2d.