overhauled old automatic posting script for SST