Fix NPE when doing wildcard matching
order imports, add logging statement
Don't scan if bluetooth is not enabled
fix merge conflicts