minor fix

type mismatches and deprecated methods. also libraries