static procedures were running slow; these are overkill but should be faster