use simpler call to main