refactor general ctrlrs to server pkg