added sreg support