bugfix setupscript