adjust home directory query