fixed some errors in sc-emmory; first workable, but not foxed version of builder