late refs cannot be specified using =>
add a test + minor cleanup of code