fixing scpout
fixing advanced output hadnling
fixing advanced output hadnling