added support for choosing delimiter