standardizing calls to main