better default for hostname
add a basic runloop