separated setup stuff into main.c:setup() - this makes main() more readable