updated phoseg/ + first tests