file plugin functioning, wip