Revert "cleanup code for regis"

Reverts albertusatria/pinaple-sas#18