fix for work in subdirectory