hmm framework works ok (however it gives unexplained results)