fixed linking to subdirectories