fleshed out the system code, so it actually runs now