add check to plain detect() as well
update gitignore