changes to pass through context, loading libs from application path