use sh-style functions, instead of bash