fixed if else knockout binding
updated for lr interface
added some logging info