added multi subplot suport