bugfix for nil sized files; simplified usage; destructive operations
handled in a safer way now;