option for line separators
deprecating resourcedoc usage
enum for common use