add has_whale() to common/
remove empty line
fix swig la interface