support filename / hash. very hacky