Added factory method for os create