resolving some exceptions