vjr remove warnings in gcc release mode, bug fixes