implemented blueprint

initial tests seem ok, further analysis needed