start of os detect