added core fn to run commands. fixed some namespaces in require