added setting methods, solved dual marker detection