fixing separators in scripts
bug fix.
working versions. can still be cleaned up.