trying automatic detection