little changes to test algorithm, fixed SA accesspoint