removing unnecessary modules from the main PM file