script for remote debugging