improved scripts for soso rewrite methods