Fix partialSync and partial API to not use config variable so it can be called from EJS files