debugged sh, it is working correctly -- but llist still fails