random main() fixes
fixed build