cleanup code, moved stuff to common module, remove system out, delete old shell exec etc.