standalone rework

-added most of the stuff in the RPM version to the standalone