setup function in modulecontent
main loop as modulecontent