stored procedures and schedule layout fixes