oops, used bash specific stuff here..