callback of query_cd() to atom