asset writer (not yet finished)