fixed broken import
autodetection is using classes directly instead of strings
moved autodetection to separate file