protocol ok

comit before changes to implement via matlab