added code coverage hooks