jbsac overhauled with the fully abstracted sac and hsac functions (hsac not tested)