fix feature delete code, needed to access current context, all the align/block etc copying was not correct, also add delete all features code.