adjusted object.bytestream method AND TEMPORARELY COMMENTED OUT LOCAL-IDS STUFF