removed socket dependency
added comment explaining def command and added code to make sure list of definitions updates