I should use basename $0 here