modded open and added more functionality doe