error handling in powershell

plus some Revision stuff lol