fixes #330

i have deleted my old fork and created a clean one and reapplied my changes to address issue #330
please let me know if you are able to accept this PR