pass path to function

Change-Id: I5faf6ec99b0b3e5369833adb000603e09168860d