finished skeleton for errors and commands