added support for multiple lines programs