added title option and some log messages