bug fixes in delay times, some bash bug fixes