import implementation and tests