nsc: changed awk to cut for string slicing