safer launching script (and space swap)