implements directory update to the pi