basename sources
add back return code