improve code for bus & memory mapping.