style changes, added conditional sc.username support