added grimwire setup code