add package main, modify package controller