fix related_id functionality, add objects searches