refinelayer script calls refineWallLayer