added support of stored procedures