handle admin scripts & error handling