add build, fix delayed init in scontext