refactored lab.sh splitting into remote/lab.sh