can now detect audio jack events. removed templates