rough code through erps/ersps