generalize interesting objects detection

fixes #7