bug fixed for loading programs on motes