ported commands to main document