converted binary calls to explicit functions for better portability
updated emerge