updated history file and setup directory information