rushed through sgs_proc errors and approximately fixed 'em
it compiles!
it runs... somewhere, now
mumbling through the first (!stringapi) test, concatenation and pop_reg don't seem to work