adapt file path handling in demo