source functions on slaves