some scripts for memo