some scripts for rgrta