reverted to previous working version. now working locally