updated to use local directories