stored procedures for BSFs