FIX: remove bashisms
FIX: function calls don't require ()