removed print of return
added bin getters
merge from jp/patches