fixed errors introduced by other packages
fixed deprecated warnings
added compat