fixes for dash - thanks @kapeli fixes #177