extract basic formatting stuff