fix pcall to give proper err