s/512/sizeof(buffer)/