add home/end support