adds currentSwell
renames api.js