modify file path and remove private code