eliminated dependency on 'whereis'