change library detector return object