added more functionality to append entries