added new method to get compilations Unit and packages