updated main to test for support