files are relative to base dir