pass file content instead of path