fixed line and path handling in helpers