clean up base controller