fixed downloading memory error, moved libs around