Support some basic function, trying to run with smp, still need to fix some problems