added the ability to get the name from the function name if none is
given