added support for --title option