fix sending scripts