basic formattin and routing