fix illegal argument exception
query dependencies and parent