added short circuit and to check if argv.notes exists before using it