update main to work for both os's