checking encoder status when encoding samples
making paths on startup