some scripts for operation