directory is set correctly