updated pre-install to use method calls.