refactor create messages; update json data and notification script for terminal-login