generic file constructor params