copied wrong main over, now sync'ed with real code