some improvements so we set the ts after a pkg was built

worky but has room for improvement