added scriptmanager to main