updated remote script (two parameters)