adding line support and tests