working one-way prototype