added expand.all functionality
added expand.all functionality