[ag] moved main package to outer level