refactored blacktiger filer for easier unit tessting