added detection of used properties and variables