journal function library for common things
updating template with journal library