use base- and subpath for file, add missing dependency