credits, headers and fopen deleted