take advantage of the srallocx used parameter
add documentation / tests for srallocx