better profile + update code to actually do stg when built