split up serve and build tasks